home *** CD-ROM | disk | FTP | other *** search
/ HAKERIS 11 / HAKERIS 11.ISO / soft / development / Macromedia RoboHelp X5 / RoboHelpOffice.exe / Data1.cab / _E4EAD35608B34544A5EEA95AB4C2AA70 < prev    next >
Encoding:
Text File  |  2003-08-27  |  7.6 KB  |  268 lines

  1. <html style="height:320;width:412;dialog-resizeable:no;">
  2. <head>
  3.     <title>Advanced Options</title>
  4.     <style>
  5.     body {font-family: verdana;font-size: 11;}
  6.     td {font-family: verdana;font-size: 11;}
  7.     input {font-family: verdana;font-size: 10;}
  8.     </style>
  9. </head>
  10.  
  11. <SCRIPT language="javascript">
  12. <!--
  13. // trimming spaces
  14. function trimStr(strOrig)
  15. {
  16.     var i, j ;
  17.     var strNew ;
  18.     for (i=0; i<strOrig.length; i++)
  19.     {
  20.         if (strOrig.charAt(i) != ' ' && strOrig.charAt(i) != '\t' && strOrig.charAt(i) != '\r' && strOrig.charAt(i) != '\n')
  21.         break ;
  22.     }
  23.     for (j=strOrig.length-1; j>i; j--)
  24.     {
  25.         if (strOrig.charAt(j) != ' ' && strOrig.charAt(j) != '\t' && strOrig.charAt(j) != '\r' && strOrig.charAt(j) != '\n')
  26.         break ;
  27.     }
  28.     strNew = strOrig.substr(i, j - i + 1) ;
  29.     
  30.     return strNew ;
  31. }
  32.  
  33. // initialize the html page at load time
  34. function loadBody()
  35. {
  36.     //get the arguments
  37.     var arrArgs = new Array();
  38.        arrArgs = window.dialogArguments.split(";");
  39.  
  40.     // analyse the parameter and set internal parameter flag
  41.     var bExportComment = false ;
  42.     var bExportStyle = false ;
  43.     var bExportScript = false ;
  44.     for (i=0; i<arrArgs.length; i++)
  45.     {
  46.         var arrOneArg = new Array();
  47.         arrOneArg = arrArgs[i].split("=");        
  48.         if (arrOneArg.length>1)
  49.         {
  50.             var sParmName = trimStr(arrOneArg[0].toString().toLowerCase()) ;
  51.             var nParmValue = arrOneArg[1].valueOf() ;
  52.  
  53.             if (sParmName == "export.comment") bExportComment = (nParmValue != 0) ;
  54.             if (sParmName == "export.style") bExportStyle = (nParmValue != 0) ;
  55.             if (sParmName == "export.script") bExportScript = (nParmValue != 0) ;
  56.         }
  57.     }
  58.  
  59.     // set control status
  60.     if (bExportComment || bExportStyle || bExportScript)
  61.     {
  62.         bExportComment = true; 
  63.         bExportStyle = true ;
  64.         bExportScript = true ;
  65.         radFullFeatured.checked = true ;
  66.     }
  67.     else
  68.     {
  69.         radContentOnly.checked = true ;
  70.     }
  71.     
  72.     params_in.value = window.dialogArguments;
  73.     params_in.disabled= true;
  74.  
  75.     params_out.value = GenerateParamsOut();
  76.     params_out.disabled = true ;
  77.  
  78.     //set the default return value
  79.     window.returnValue = params_out.value;
  80. }
  81.  
  82. // triggered when OK clicked
  83. function okButtonClick()
  84. {
  85.     //generate return value
  86.     params_out.value = GenerateParamsOut() ;
  87.     
  88.     //this return value means that the OK button was clicked
  89.        window.returnValue = params_out.value;
  90.     
  91.     //close the dialog
  92.     window.close();
  93.     return false;
  94. }
  95.  
  96. // triggered when Cancel clicked
  97. function cancelButtonClick()
  98. {
  99.     //this return value means that the Cancel button was clicked
  100.        window.returnValue = 0;
  101.     
  102.     //close the dialog
  103.     window.close();
  104.     return false;
  105. }
  106.  
  107. // generate output parameters
  108. function GenerateParamsOut()
  109. {
  110.     //generate return value
  111.     var sParamsOut = "" ;
  112.  
  113.     if (radContentOnly.checked)
  114.         sParamsOut = "export.comment=0;export.style=0;export.script=0;export.ExcludeFiles=0x001D" ;
  115.     else
  116.         sParamsOut = "export.comment=1;export.style=1;export.script=1;export.ExcludeFiles=0x0000" ;
  117.     
  118.     return sParamsOut ;
  119. }
  120.  
  121. function selectContentOnly()
  122. {
  123.     document.all("radContentOnly").checked = true ;
  124.     params_out.value = GenerateParamsOut() ;
  125.     return true;
  126. }
  127.  
  128. function selectFullFeatured()
  129. {
  130.     document.all("radFullFeatured").checked = true ;
  131.     params_out.value = GenerateParamsOut() ;
  132.     return true;
  133. }
  134.  
  135. function ShowToolTip(strID, visible)
  136. {
  137.     return true;
  138. //    if (visible)
  139. //        document.all(strID).style.visibility = "visible" ;
  140. //    else
  141. //        document.all(strID).style.visibility = "hidden" ;
  142. //    return true;
  143. }
  144.  
  145. function flipImage(url)
  146. {
  147.     if (window.event.srcElement.tagName == "IMG" ) {
  148.         window.event.srcElement.src = url;
  149.     }
  150. }
  151.  
  152. var wndHelp = null;
  153. function openHelp()
  154. {
  155.     closeHelp();
  156.     wndHelp = window.open("ExportTopicParamsHelp.htm", null, "left=400,top=50,width=390,height=350,scrollbars=no,resizable=yes,toolbar=no,location=no,status=no,menubar=no,") ;
  157.     return false;
  158. }
  159.  
  160. function closeHelp()
  161. {
  162.     try
  163.     {
  164.         if (wndHelp != null) wndHelp.close();
  165.     }
  166.     catch(e)
  167.     {
  168.     }    
  169. }
  170.  
  171. function keydownHandler()
  172. {
  173.     switch (event.keyCode)
  174.     {
  175.         case 27:    // ESC
  176.             cancelButtonClick();
  177.             event.returnValue = false ;
  178.             break ;
  179.  
  180.         case 13:    // ENTER
  181.             okButtonClick();
  182.             event.returnValue = false ;
  183.             break ;
  184.             
  185.         default:
  186.     }
  187. }
  188. //-->
  189. </SCRIPT>
  190.  
  191. <BODY onload="loadBody()" bgcolor="THREEDFACE" TEXT="black" onunload="closeHelp()"
  192.         onkeydown="keydownHandler()" onhelp="openHelp()">
  193.  
  194. <div id="main" style="position:absolute;left:15px;top:15px;">
  195. <table align="left" width="100%" border="0" cellspacing="0" cellpadding="0">
  196. <tr>
  197. <td colspan=2 align="middle">
  198.     <table style="color:black">
  199.         <tr heigh="40" valign="bottom">
  200.             <td colspan=2 align="middle"><br><b>Advanced Options for Topic Export to DocBook</b></td>
  201.         </tr>
  202.         <tr heigh="40" valign="bottom">
  203.             <td colspan=2 align="middle"><br><img border="0" src="docbook.gif"></td>
  204.         </tr>
  205.         <tr height="120">
  206.             <td width="10" align="middle"></td>
  207.             <td >
  208.                 <p>
  209.                     How do you want to export the topics to DocBook?<br><br>
  210.                     <span onClick="selectContentOnly()" onMouseOver="ShowToolTip('tip1',true)" onMouseOut="ShowToolTip('tip1',false)">
  211.                           <INPUT accesskey="c" type=radio id="radContentOnly" name="selectoption" checked>
  212.                          <u>C</u>ontent Only</span><br>
  213.                     <span onClick="selectFullFeatured()" onMouseOver="ShowToolTip('tip2',true)" onMouseOut="ShowToolTip('tip2',false)">
  214.                           <INPUT accesskey="f"  type=radio id="radFullFeatured" name="selectoption">
  215.                          <u>F</u>ull-featured Export</span>
  216.                 </p>
  217.             </td>
  218.         </tr>
  219.     </table>
  220. </td>
  221. </tr>
  222. <tr height="40" valign="top">
  223.     <td colspan=2 align="middle">
  224.         <img border="0" src="line.jpg">
  225.         <!--hr style="color:black;height:1px"-->
  226.         <br><br>
  227.         <a tabindex="1" href="" onclick="return okButtonClick();"><img border="0" src="ok.jpg" onmouseover="flipImage('ok_highlight.jpg')" onmouseout="flipImage('ok.jpg')"></a>   
  228.         <a tabindex="2" href="" onclick="return cancelButtonClick();"><img border="0" src="cancel.jpg" onmouseover="flipImage('cancel_highlight.jpg')" onmouseout="flipImage('cancel.jpg')"></a>   
  229.         <a tabindex="3" href="" onclick="return openHelp();"><img border="0" src="help.jpg" onmouseover="flipImage('help_highlight.jpg')" onmouseout="flipImage('help.jpg')"></a>  
  230.     </td>
  231. </tr>
  232. </table>
  233. </div>
  234.  
  235. <div style="visibility:hidden">
  236. <input type="text" name="params_in" style="border:0px;bgcolor:#0060CD;color:white;position:absolute;left:160px;width: 200px"><br><br>
  237. <input type="text" name="params_out" style="border:0px;bgcolor:#0060CD;color:white;position:absolute;left:160px; width: 200px">
  238. </div>
  239.  
  240. <div id="tip1" style="visibility:hidden;position:absolute;left:250px;top:8px;width:150px;height:150px;">
  241. <table cellpadding=0 cellspacing=0 background="box.gif"
  242.     style="border:0;padding-left:6px;padding-right:8px;padding-top:8px;padding-bottom:8px;width:150px;height:150px;color:#0060CD">
  243. <tr height=130 valign="top">
  244. <td>
  245.     <b>Content Only</b><br><br>
  246.     Only meaningful contents will be exported. It includes
  247.     inline/block text, image, normal links, tables. All dhtml effects, scripts would be dropped.
  248. </td>
  249. </tr>
  250. </table>
  251. </div>
  252.  
  253. <div id="tip2" style="visibility:hidden;position:absolute;left:250px;top:28px;width:150px;height:150px;">
  254. <table cellpadding=0 cellspacing=0 background="box.gif"
  255.     style="border:0;padding-left:6px;padding-right:8px;padding-top:8px;padding-bottom:8px;width:150px;height:150px;color:#0060CD;">
  256. <tr height=130 valign="top">
  257. <td>
  258.     <b>Full-featured Export</b><br><br>
  259.     All topic contents will be kept well even styles and dhtml effects when you export with this option. It
  260.     makes it possible to import it back.
  261. </td>
  262. </tr>
  263. </table>
  264. </div>
  265.  
  266. </body>
  267. </html>
  268.